<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head id="MyHead">
      <script src="../resources/resources/Scripts/jquery.min.js" type="text/javascript"></script>
    <script src="../resources/Scripts/JScriptCommon.js" type="text/javascript"></script>
    <link href="../resources/Content/StyleSheet.css" rel="stylesheet" type="text/css" />
    <script src="../resources/Scripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../resources/Scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
    <link href="../resources/Content/IndexStyle.css" rel="stylesheet" type="text/css" />
            <script src="../resources/Res/easyui/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../resources/Res/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
    <link href="../resources/Res/easyui/themes/icon.css" rel="stylesheet"
        type="text/css" />
    <link href="../resources/Res/easyui/themes/default/easyui.css" rel="stylesheet"
        type="text/css" />

    <title>

</title>
    <script type="text/javascript" src="../resources/Res/ueditor1_4_3-gbk-net/ueditor.config.js"></script>
    <script type="text/javascript" src="../resources/Res/ueditor1_4_3-gbk-net/ueditor.all.min.js"></script>
    <script type="text/javascript" charset="gbk" src="../resources/Res/ueditor1_4_3-gbk-net/lang/zh-cn/zh-cn.js"></script>

    <script type="text/javascript">

        $(function () {

            $("#submit").click(function () {

                if ($("#ciPlatenumber").val() == "") {
                    $.messager.alert('系统提示：', '请输入车牌号！', 'warning');
                    return false;
                }

                if ($("#CiBranchschool").combobox("getValue") == "") {
                    $.messager.alert('系统提示：', '请选择所在分校！', 'warning');
                    return false;
                }

				return true;


            });

        });

    </script>

    <script type='text/javascript'>
	
/*         function ajaxFrom(form, url) {
            progressComm();
            $.ajax({
                url: url,
               	url:url,
                type: "Post",
                data: $(form).serialize(),
                dataType: "json",
                success: function (result) {
                	console.log(result.msg)
					if (result.message =='OK') {
						alert("添加成功！");
                    $.messager.progress('close');
                    if ($.messager) {
                        $.messager.defaults.cancel = '返回列表';
                        $.messager.defaults.ok = '继续创建';

                        window.parent.shuaxin();
                        $.messager.confirm('操作提示', data, function (r) {

                            if (!r) {
                              window.parent.location = window.parent.location;
                                parent.closeCurrTab('新增车辆'); 
                            //	window.location.href = 'javascript:history.go(-1)'; 
                          }
                        });
                    }

                }
            }); 
           }
        } 
     
         $(function () {

            $("form").submit(function (form) {
                if (form.result) {
                    ajaxFrom(this, this.action);
                }
                return false;
            });
        });
         */
        function tabClose() {
            parent.closeCurrTab();
        }
    </script>
</head>
<body>
    <div class="mbx">
        
      新增车辆

    </div>
    <form action="/addCarInfo" method="post">
    
    <fieldset>
        <legend>
           <input class="submitcss" type="submit" id="submit" value="创建" />
           <!--  <input class="submitcss" type="submit" value="创建" /> -->
            <input class="submitcss" type="button" onclick="tabClose();" value="返回" />
        </legend>
        <div class="bigdiv">
                 
            <div class="editor-label">
                <label for="ciPlatenumber">车牌号</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="C_no" name="ciPlatenumber" type="text" value="${record.ciPlatenumber}" />
                <!-- <span class="field-validation-valid" data-valmsg-for="C_no" data-valmsg-replace="true"></span> -->
            </div>     
            <div class="editor-label">
                <label for="ciId">车牌小号</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="ciId" name="ciId" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_sno" data-valmsg-replace="true"></span>
            </div>
            
            <div class="editor-label">
                <label for="CiBranchschool">所在分校</label>
            </div>
            <div class="editor-field">
                <select class="easyui-combobox" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" editable="false" id="CiBranchschool" name="CiBranchschool" panelHeight="auto" style="width:210px;"><option value="${record.ciBranchschool}">请选择</option>
					<option value="总校">总校</option>
					<option value="挂靠">挂靠</option>
				</select>  
            </div>
              <div class="editor-label">
                    <label for="ciUnitprice">练车单价</label>：
                </div>
                <div class="editor-field">
                    <input id="ciUnitprice" name="ciUnitprice" style="width: 116px;"  class="easyui-numberbox" data-options="precision:2,groupSeparator:','" />
                    <span>元/分钟</span>
                    <span class="field-validation-valid" data-valmsg-for="C_LCdanjia" data-valmsg-replace="true"></span>
                </div>


            <br style=" clear:both;" />
            <br style=" clear:both;" />
            <div class="editor-label">
                <label for="ciSitenumber">场地编号</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="ciSitenumber" name="ciSitenumber" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_Pno" data-valmsg-replace="true"></span>
            </div>        
            <div class="editor-label">
                <label for="ctId">车型代码</label>
            </div>
            <div class="editor-field">
                <select data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="ctId" name="ctId"><option value="">请选择</option>
				<option value="1003">A</option>
				<option value="1002">B</option>
				<option value="1001">C</option>
				</select>  
            </div>     
            <div class="editor-label">
                <label for="ciMotorcade">所属车队</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="ciMotorcade" name="ciMotorcade" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_team" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciOwner">车主</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="ciOwner" name="ciOwner" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_master" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciFrameno">车架号</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="ciFrameno" name="ciFrameno" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="ciFrameno" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciAddress">地址</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="ciAddress" name="ciAddress" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_add" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciEngine">发动机号</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="ciEngine" name="C_moterno" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="ciEngine" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for=ciFactoryplatemodel>厂牌型号</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="ciFactoryplatemodel" name="ciFactoryplatemodel" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_fmode" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciRecorddate">登记日期</label>
            </div>
            <div class="editor-field">
                <input class="easyui-datebox" id="ciRecorddate" name="" style="width: 214px;" type="text" id="ciRecorddate" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_regdate" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciMarketingunit">销售单位</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="ciMarketingunit" name="ciMarketingunit" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_sales" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciRecordno">档案编号</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="ciRecordno" name="ciRecordno" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_filesNo" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciInitmileage">初始里程</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-number="字段 初始里程 必须是一个数字。" id="ciInitmileage" name="ciInitmileage" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_smile" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciColor">车颜色</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="ciColor" name="ciColor" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_colour" data-valmsg-replace="true"></span>
            </div>     
            <br style="clear: both;" />
            <div class="editor-label">
                <label for="C_use">车辆历史违章及事故</label>
            </div>
            <div class="textarea-box">
                <textarea cols="20" data-val="true" data-val-length="长度不可超过550" data-val-length-max="550" id="C_use" name="C_use" rows="2">
				</textarea>
                <span class="field-validation-valid" data-valmsg-for="C_use" data-valmsg-replace="true"></span>
            </div>     
  
            <div class="editor-label">
                <label for="ciDriver">司机</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="ciDriver" name="ciDriver" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_dirver" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciCheckstatus">审核状态</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="ciCheckstatus" name="ciCheckstatus" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_checktype" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciIdentityid">身份证号(驾驶员)</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="ciIdentityid" name="ciIdentityid" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_GPSNO" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciTelephonenumber">联系电话(驾驶员)</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="ciTelephonenumber" name="ciTelephonenumber" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_GPStype" data-valmsg-replace="true"></span>
            </div>     
           <%--  <div class="editor-label">
                <label for="C_SIM">SIM卡号</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过50" data-val-length-max="50" id="C_SIM" name="C_SIM" type="text" value="${rocord.ciUnitprice}" />
                <span class="field-validation-valid" data-valmsg-for="C_SIM" data-valmsg-replace="true"></span>
            </div>      --%>
            <div class="editor-label">
                <label for="ciMemo">备注</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过16" data-val-length-max="16" id="ciMemo" name="ciMemo" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="C_remark" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for="ciRecorder">录入人</label>
            </div>
            <div class="editor-field">
                <input class="text-box single-line" data-val="true" data-val-length="长度不可超过36" data-val-length-max="36" id="ciRecorder" name="ciRecorder" type="text" value="" />
                <span class="field-validation-valid" data-valmsg-for="FK_USER" data-valmsg-replace="true"></span>
            </div>     
            <div class="editor-label">
                <label for=ciRecordtime>录入时间</label>
            </div>
            <div class="editor-field">
                <input class="easyui-datebox" id="ciRecordtime" name="" style="width: 214px;" type="text" value="${rocord.ciRecordtime}" />
                <span class="field-validation-valid" data-valmsg-for="C_update" data-valmsg-replace="true"></span>
            </div>
        </div>
 <!--        <script type="text/javascript">
            var ue = UE.getEditor('editor');        
        </script> -->
    </fieldset>

    </form>
</body>
</html>